package rs.udd.service;

import java.io.File;
import java.util.List;

import rs.udd.exceptions.UddException;
import rs.udd.model.Advert;
import rs.udd.service.dto.advert.AdvertDto;
import rs.udd.service.dto.advert.AdvertViewDto;

public interface AdvertService extends AbstractService<Advert> {

	public List<Advert> findAdvertsByCategory(String categoryName) throws UddException;

	public List<Advert> findAllForBrowse() throws UddException;

	public AdvertViewDto findOneForViewing(Long id) throws UddException;
	
	public Long getAdvertIdByIndexedDocumentId(String indexedDocumentId);
	
	public AdvertDto edit(AdvertDto dto, File file) throws UddException;

}
